/*
 * @Author: H.
 * @Date: 2021-12-02 15:50:38
 * @LastEditTime: 2021-12-07 15:52:42
 * @Description:
 */
import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'normalize.css'
import App from './App.vue'
import router from './router'
import store from './store'
import { setupStore } from './store'
import * as ElIconModules from '@element-plus/icons'
import transElIconName from '@/utils/transElIconName'
import { globalRegister } from '@/global'
const app = createApp(App)
app.use(store)
app.use(setupStore)
app.use(router)
app.use(ElementPlus)
app.use(globalRegister)
for (const iconName in ElIconModules) {
  app.component(transElIconName(iconName), ElIconModules[iconName])
}
app.mount('#app')
